package com.tao.pojo.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class HealthRecord {
    private Integer id;
    private Integer userId;
    private Integer doctorId;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime recordDate;
    private String diagnosis;
    private String prescription;
    private String treatment;
    private String notes;
    private Doctor doctor;
    private User user;
}
